package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class FlywaySchemaHistory extends Model<FlywaySchemaHistory> {

private static final long serialVersionUID = 1L;

                    @TableId(value = "installed_rank", type = IdType.UUID)
                private Integer installedRank;
        @Version
    private String version;
        private String description;
        private String type;
        private String script;
        private Integer checksum;
        private String installedBy;
        private Date installedOn;
        private Integer executionTime;
        private Boolean success;


    public Integer getInstalledRank() {
            return installedRank;
            }

        public void setInstalledRank(Integer installedRank) {
            this.installedRank = installedRank;
            }

    public String getVersion() {
            return version;
            }

        public void setVersion(String version) {
            this.version = version;
            }

    public String getDescription() {
            return description;
            }

        public void setDescription(String description) {
            this.description = description;
            }

    public String getType() {
            return type;
            }

        public void setType(String type) {
            this.type = type;
            }

    public String getScript() {
            return script;
            }

        public void setScript(String script) {
            this.script = script;
            }

    public Integer getChecksum() {
            return checksum;
            }

        public void setChecksum(Integer checksum) {
            this.checksum = checksum;
            }

    public String getInstalledBy() {
            return installedBy;
            }

        public void setInstalledBy(String installedBy) {
            this.installedBy = installedBy;
            }

    public Date getInstalledOn() {
            return installedOn;
            }

        public void setInstalledOn(Date installedOn) {
            this.installedOn = installedOn;
            }

    public Integer getExecutionTime() {
            return executionTime;
            }

        public void setExecutionTime(Integer executionTime) {
            this.executionTime = executionTime;
            }

    public Boolean getSuccess() {
            return success;
            }

        public void setSuccess(Boolean success) {
            this.success = success;
            }

@Override
protected Serializable pkVal() {
            return this.installedRank;
        }

@Override
public String toString() {
        return "FlywaySchemaHistory{" +
                ", installedRank=" + installedRank +
                ", version=" + version +
                ", description=" + description +
                ", type=" + type +
                ", script=" + script +
                ", checksum=" + checksum +
                ", installedBy=" + installedBy +
                ", installedOn=" + installedOn +
                ", executionTime=" + executionTime +
                ", success=" + success +
        "}";
        }
        }
